package com.dgcsxy.cat_eyes_movies.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dgcsxy.cat_eyes_movies.entity.dto.MoviesDto;
import com.dgcsxy.cat_eyes_movies.entity.pojo.Movies;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author rokies
 * @DATE 2022/6/16 16:34
 * @Version 1.0
 */
@Mapper
public interface MoviesMapper extends BaseMapper<Movies> {

    Movies queryMoviesByName(@Param("movieName") String movieName);

    IPage<MoviesDto> queryMoviesByPage(@Param("page") Page<MoviesDto> page);
}
